<script setup>

</script>

<template>
	<view class="notice">
		<!-- 标题 -->
		<view class="title">
			<view class="tag">
				<uni-tag text="置顶" type="error" inverted></uni-tag>
			</view>
			<view class="title-text">这个是标题</view>
		</view>
		<!-- 发布人 -->
		<view class="info">
			<view class="item">拾光壁纸</view>
			<view class="item">
				<uni-dateformat :date="new Date()" format="yyyy-MM-dd hh:mm:ss"></uni-dateformat>
			</view>
		</view>
		<!-- 内容 -->
		<view class="content">
			内容区域
		</view>
		<!-- 阅读数 -->
		<view class="count">
			555
		</view>
	</view>
</template>

<style lang="scss" scoped>
	.notice {
		padding: 30rpx;

		.title {
			font-size: 40rpx;
			color: #111;
			line-height: 1.6em;
			padding-bottom: 30rpx;
			display: flex;

			.tag {
				transform: scale(0.8);
				transform-origin: left center;
				flex-shrink: 0;
			}

			.title-text {
				margin-left: 6rpx;
			}
		}

		.info {
			display: flex;
			align-items: center;
			color: #999;
			font-size: 28rpx;

			.item {
				margin-right: 20rpx;
			}
		}

		.content {
			padding: 50rpx 0;
		}

		.count {
			color: #999;
			font-size: 28rpx;
		}
	}
</style>